export const transDate = (str) => {
  const date = new Date(str);
  const YY = date.getFullYear();
  const MM = date.getMonth() + 1;
  const DD = date.getDate();
  const hh = date.getHours();
  const mm = date.getMinutes();
  const ss = date.getSeconds();
  const dateStr = YY + "-" + MM + "-" + DD + "  " + hh + ":" + mm + ":" + ss;
  return dateStr;
};
